翻訳と辞書
Words near each other
・ Merfolk (Dungeons & Dragons)
・ Merfy
・ Merfyn ap Rhodri
・ Merfyn Frych
・ Merfyn Jones
・ Merfyn Jones (footballer)
・ Merfyn Turner
・ Merga
・ Merga Bien
・ Mergana
・ Mergasor District
・ Mergbach
・ Merge
・ Merge (linguistics)
・ Merge (software)
Merge (SQL)
・ Merge (traffic)
・ Merge (version control)
・ Merge algorithm
・ Merge in Takapuna
・ Merge in transit
・ Merge Module
・ Merge Records
・ Merge Records discography
・ Merge sort
・ Merge window
・ Mergeable heap
・ Mergellandroute
・ Mergellina
・ Mergellina (Naples Metro)


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Merge (SQL) : ウィキペディア英語版
Merge (SQL)
A relational database management system uses SQL MERGE (also called ''upsert'') statements to INSERT new records or UPDATE existing records depending on whether or not a condition matches. It was officially introduced in the SQL:2003 standard, and expanded in the SQL:2008 standard.
==Usage==

MERGE INTO tablename USING table_reference ON (condition)
WHEN MATCHED THEN
UPDATE SET column1 = value1 (column2 = value2 ... )
WHEN NOT MATCHED THEN
INSERT (column1 (column2 ... )) VALUES (value1 [, value2 ...

Right join is employed over the Target (the INTO table) and the Source (the USING table / view / sub-query). That is:
* If rows present in the Source but missing from the Target do run the action then specifically the NOT MATCHED action
* If rows missing from the Source and present in Target are ignored then no action is performed on the Target.

If multiple Source rows match a given Target row, an error is mandated by SQL:2003 standards. You cannot update a Target row multiple times with a MERGE statement

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Merge (SQL)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.